package com.bitcola.security.activity.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *  @author wx
 * @create 2018-11-14 10:12
 **/
@FeignClient(value = "dogex-me")
@Repository
public interface IMeFeign {

    @RequestMapping(value = "login/ipSum", method = RequestMethod.GET)
    Integer getIpSum(@RequestParam("ip") String ip);

    @RequestMapping(value ="login/lastIp", method = RequestMethod.GET)
     String  lastIp(@RequestParam("userId") String userId);
}
